package com.zr.bili.dao;


import com.zr.bili.entity.User;
import com.zr.bili.entity.Video;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * @author zhangrui
 * @date 2020-04-12 10:24
 */
@Mapper
public interface VideoMapper {
    @Insert({ "insert into video(card_type, card_goto, goto, param, bvid, cover, title, uri, cover_right_text_1,right_desc_1, right_desc_2, rcmd_reason,author_id ) values(#{card_type}, #{card_goto}, #{gotoX}, #{param}, #{bvid}, #{cover}, #{title}, #{uri}, #{cover_right_text_1}, #{right_desc_1}, #{right_desc_2}, #{rcmd_reason}, #{author_id})" })
    int insertVideo(Video video);

    @Select("select title from video")
    List<String> selectAllTitle();

}
